Inheritance diagram for XFcResource:
Public Member Functions | |
virtual XFCIMPORT INT | callback (void *aBuffer) |
Called whenever the resource needs to be generated. | |
virtual XFCIMPORT | ~XFcResource () |
Virtual destructor. | |
Protected Member Functions | |
XFcResource () | |
Protected constructor. | |
void | createResource (const UINT32 aSize, const UINT32 aFlags) |
Creates a resource, size in bytes, with user given flags. | |
void | createResource (const UINT32 aSize) |
Creates a resource, size in bytes, with default flags. | |
INT | removeResource () |
Removes a resource. | |
void * | lockResource () |
Locks resource. | |
INT | unlockResource () |
Unlocks resource. | |
Private Attributes | |
INT32 | mId |
Unique id. |
Defines the resource interface. Resources can be managed by the resource manager in a way so that if the memory manager runs out of memory, the resource manager can destroy resources as it sees fit, and will re-create the resources when they are needed next. Textures, for example, are resources.
|
Virtual destructor.
|
|
Protected constructor. Makes XFcResource an abstract class as there is no public static constructor. |
|
Called whenever the resource needs to be generated. aBuffer points to a buffer which is as large as the resource requires (as defined in the createResource() call). The resource manager expects the callback to fill the buffer with the resource data.
Reimplemented in XFcGLComplexSurfaceResource, and XFcGLSingleSurfaceResource. |
|
Creates a resource, size in bytes, with default flags.
|
|
Creates a resource, size in bytes, with user given flags.
|
|
Locks resource.
|
|
Removes a resource.
|
|
Unlocks resource.
|
|
Unique id.
|
![]() | ||||
![]() |
Confidential Copyright © 2002-2003 Fathammer | with doxygen by Dimitri van Heesch |